import {
  homeLoginStatisticMock,
  homeStatisticMock,
  homeVersionMock,
} from "./home_mock";
import {
  useListMock,
  userGenderMock,
  userInfoMock,
  userMock,
} from "./user_mock";

export const apiMock = () => {
  console.log(
    import.meta.env.VITE_MOCK_ENABLE === "true" ? "mock环境" : "不是mock环境"
  );

  if (import.meta.env.VITE_MOCK_ENABLE !== "true") {
    return;
  }
  userMock();
  userInfoMock();
  userGenderMock();
  useListMock();
  homeStatisticMock();
  homeVersionMock();
  homeLoginStatisticMock();
};
